import request from '@/utils/request'

// 查询系统日志列表
export function listSystemlog(query) {
  return request({
    url: '/user-center/systemlog/page',
    method: 'post',
    data: query
  })
}

// 查询系统日志详细
export function getSystemlog(requestId) {
  return request({
    url: '/user-center/systemlog/' + requestId,
    method: 'get'
  })
}

// 新增系统日志
export function addSystemlog(data) {
  return request({
    url: '/user-center/systemlog',
    method: 'post',
    data: data
  })
}

// 修改系统日志
export function updateSystemlog(data) {
  return request({
    url: '/user-center/systemlog',
    method: 'put',
    data: data
  })
}

// 删除系统日志
export function delSystemlog(requestId) {
  return request({
    url: '/user-center/systemlog/' + requestId,
    method: 'delete'
  })
}

// 清空系统日志
export function cleanSystemLog(requestId) {
  return request({
    url: '/user-center/systemlog/clean',
    method: 'delete'
  })
}

